﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpArch.Core;
using SharpArch.Core.DomainModel;
namespace Blog.Huge.Core
{
    public class Post:Entity
    {
        protected Post()
        {
            
        }
        public Post(string title)
        {
            Check.Require(!string.IsNullOrEmpty(title)
                && title.Trim() != string.Empty, "title must be provided");
            this.Title = title;
        }
        
        public virtual string Content { get; set; }
        [DomainSignature]
        public virtual string Title { get; set; }
    }
}
